.class Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;
.super Ljava/util/TimerTask;
.source "Home4StaticMap.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/teewoo/app/bus/ui/Home4StaticMap;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "VersionTask"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/teewoo/app/bus/ui/Home4StaticMap;


# direct methods
.method private constructor <init>(Lcom/teewoo/app/bus/ui/Home4StaticMap;)V
    .locals 0
    .parameter

    .prologue
    .line 438
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;->this$0:Lcom/teewoo/app/bus/ui/Home4StaticMap;

    invoke-direct {p0}, Ljava/util/TimerTask;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/teewoo/app/bus/ui/Home4StaticMap;Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 438
    invoke-direct {p0, p1}, Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;-><init>(Lcom/teewoo/app/bus/ui/Home4StaticMap;)V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 3

    .prologue
    .line 440
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;->this$0:Lcom/teewoo/app/bus/ui/Home4StaticMap;

    iget-boolean v0, v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->isVersionChecked:Z

    if-nez v0, :cond_1

    .line 441
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;->this$0:Lcom/teewoo/app/bus/ui/Home4StaticMap;

    new-instance v1, Lcom/teewoo/app/bus/util/VersionUtil;

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;->this$0:Lcom/teewoo/app/bus/ui/Home4StaticMap;

    invoke-static {v2}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->access$2(Lcom/teewoo/app/bus/ui/Home4StaticMap;)Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/teewoo/app/bus/util/VersionUtil;-><init>(Landroid/content/Context;)V

    iput-object v1, v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->verUtil:Lcom/teewoo/app/bus/util/VersionUtil;

    .line 442
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;->this$0:Lcom/teewoo/app/bus/ui/Home4StaticMap;

    iget-object v0, v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->verUtil:Lcom/teewoo/app/bus/util/VersionUtil;

    invoke-virtual {v0}, Lcom/teewoo/app/bus/util/VersionUtil;->checkVersion()V

    .line 443
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;->this$0:Lcom/teewoo/app/bus/ui/Home4StaticMap;

    iget-object v0, v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->verUtil:Lcom/teewoo/app/bus/util/VersionUtil;

    invoke-virtual {v0}, Lcom/teewoo/app/bus/util/VersionUtil;->hasNewerVersion()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 444
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;->this$0:Lcom/teewoo/app/bus/ui/Home4StaticMap;

    iget-object v0, v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->homeHandler:Landroid/os/Handler;

    const/4 v1, 0x7

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 445
    :cond_0
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;->this$0:Lcom/teewoo/app/bus/ui/Home4StaticMap;

    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->isVersionChecked:Z

    .line 446
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;->this$0:Lcom/teewoo/app/bus/ui/Home4StaticMap;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;->this$0:Lcom/teewoo/app/bus/ui/Home4StaticMap;

    iget-object v1, v1, Lcom/teewoo/app/bus/ui/Home4StaticMap;->verTask:Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;->this$0:Lcom/teewoo/app/bus/ui/Home4StaticMap;

    iget-object v2, v2, Lcom/teewoo/app/bus/ui/Home4StaticMap;->verTimer:Ljava/util/Timer;

    invoke-static {v0, v1, v2}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->access$4(Lcom/teewoo/app/bus/ui/Home4StaticMap;Ljava/util/TimerTask;Ljava/util/Timer;)V

    .line 448
    :cond_1
    return-void
.end method
